Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.

Using Dependency Pairs [1,13] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

PROPER1(from1(X)) -> FROM1(proper1(X))
ACTIVE1(from1(X)) -> FROM1(s1(X))
FILTER2(mark1(X1), X2) -> FILTER2(X1, X2)
ACTIVE1(divides2(X1, X2)) -> ACTIVE1(X2)
PROPER1(filter2(X1, X2)) -> PROPER1(X2)
ACTIVE1(divides2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(from1(X)) -> FROM1(active1(X))
PROPER1(divides2(X1, X2)) -> PROPER1(X2)
PROPER1(head1(X)) -> PROPER1(X)
S1(mark1(X)) -> S1(X)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> DIVIDES2(s1(s1(X)), Y)
ACTIVE1(if3(X1, X2, X3)) -> IF3(active1(X1), X2, X3)
PROPER1(divides2(X1, X2)) -> DIVIDES2(proper1(X1), proper1(X2))
ACTIVE1(sieve1(cons2(X, Y))) -> CONS2(X, filter2(X, sieve1(Y)))
TOP1(mark1(X)) -> TOP1(proper1(X))
ACTIVE1(tail1(X)) -> TAIL1(active1(X))
IF3(mark1(X1), X2, X3) -> IF3(X1, X2, X3)
HEAD1(mark1(X)) -> HEAD1(X)
ACTIVE1(filter2(X1, X2)) -> FILTER2(active1(X1), X2)
FROM1(mark1(X)) -> FROM1(X)
PROPER1(cons2(X1, X2)) -> PROPER1(X1)
ACTIVE1(divides2(X1, X2)) -> DIVIDES2(X1, active1(X2))
PROPER1(tail1(X)) -> PROPER1(X)
TOP1(ok1(X)) -> ACTIVE1(X)
DIVIDES2(ok1(X1), ok1(X2)) -> DIVIDES2(X1, X2)
ACTIVE1(s1(X)) -> S1(active1(X))
PROPER1(divides2(X1, X2)) -> PROPER1(X1)
PROPER1(s1(X)) -> PROPER1(X)
PROPER1(tail1(X)) -> TAIL1(proper1(X))
ACTIVE1(primes) -> S1(s1(0))
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> SIEVE1(Y)
ACTIVE1(divides2(X1, X2)) -> DIVIDES2(active1(X1), X2)
DIVIDES2(mark1(X1), X2) -> DIVIDES2(X1, X2)
ACTIVE1(primes) -> S1(0)
HEAD1(ok1(X)) -> HEAD1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)
ACTIVE1(sieve1(X)) -> SIEVE1(active1(X))
TOP1(mark1(X)) -> PROPER1(X)
FILTER2(X1, mark1(X2)) -> FILTER2(X1, X2)
TAIL1(ok1(X)) -> TAIL1(X)
PROPER1(filter2(X1, X2)) -> PROPER1(X1)
PROPER1(if3(X1, X2, X3)) -> PROPER1(X1)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> CONS2(Y, filter2(X, sieve1(Y)))
ACTIVE1(primes) -> SIEVE1(from1(s1(s1(0))))
DIVIDES2(X1, mark1(X2)) -> DIVIDES2(X1, X2)
IF3(ok1(X1), ok1(X2), ok1(X3)) -> IF3(X1, X2, X3)
ACTIVE1(sieve1(cons2(X, Y))) -> SIEVE1(Y)
ACTIVE1(head1(X)) -> ACTIVE1(X)
PROPER1(if3(X1, X2, X3)) -> IF3(proper1(X1), proper1(X2), proper1(X3))
PROPER1(sieve1(X)) -> SIEVE1(proper1(X))
ACTIVE1(filter2(X1, X2)) -> ACTIVE1(X1)
PROPER1(filter2(X1, X2)) -> FILTER2(proper1(X1), proper1(X2))
PROPER1(if3(X1, X2, X3)) -> PROPER1(X3)
PROPER1(s1(X)) -> S1(proper1(X))
ACTIVE1(filter2(X1, X2)) -> ACTIVE1(X2)
PROPER1(sieve1(X)) -> PROPER1(X)
S1(ok1(X)) -> S1(X)
ACTIVE1(head1(X)) -> HEAD1(active1(X))
ACTIVE1(s1(X)) -> ACTIVE1(X)
SIEVE1(ok1(X)) -> SIEVE1(X)
ACTIVE1(filter2(X1, X2)) -> FILTER2(X1, active1(X2))
PROPER1(if3(X1, X2, X3)) -> PROPER1(X2)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> IF3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y))))
ACTIVE1(from1(X)) -> CONS2(X, from1(s1(X)))
CONS2(mark1(X1), X2) -> CONS2(X1, X2)
ACTIVE1(cons2(X1, X2)) -> CONS2(active1(X1), X2)
TAIL1(mark1(X)) -> TAIL1(X)
PROPER1(head1(X)) -> HEAD1(proper1(X))
ACTIVE1(cons2(X1, X2)) -> ACTIVE1(X1)
SIEVE1(mark1(X)) -> SIEVE1(X)
FILTER2(ok1(X1), ok1(X2)) -> FILTER2(X1, X2)
ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(sieve1(cons2(X, Y))) -> FILTER2(X, sieve1(Y))
ACTIVE1(from1(X)) -> S1(X)
PROPER1(cons2(X1, X2)) -> CONS2(proper1(X1), proper1(X2))
TOP1(ok1(X)) -> TOP1(active1(X))
PROPER1(from1(X)) -> PROPER1(X)
ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
PROPER1(cons2(X1, X2)) -> PROPER1(X2)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> FILTER2(s1(s1(X)), Z)
CONS2(ok1(X1), ok1(X2)) -> CONS2(X1, X2)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> FILTER2(X, sieve1(Y))
FROM1(ok1(X)) -> FROM1(X)
ACTIVE1(primes) -> FROM1(s1(s1(0)))

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

PROPER1(from1(X)) -> FROM1(proper1(X))
ACTIVE1(from1(X)) -> FROM1(s1(X))
FILTER2(mark1(X1), X2) -> FILTER2(X1, X2)
ACTIVE1(divides2(X1, X2)) -> ACTIVE1(X2)
PROPER1(filter2(X1, X2)) -> PROPER1(X2)
ACTIVE1(divides2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(from1(X)) -> FROM1(active1(X))
PROPER1(divides2(X1, X2)) -> PROPER1(X2)
PROPER1(head1(X)) -> PROPER1(X)
S1(mark1(X)) -> S1(X)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> DIVIDES2(s1(s1(X)), Y)
ACTIVE1(if3(X1, X2, X3)) -> IF3(active1(X1), X2, X3)
PROPER1(divides2(X1, X2)) -> DIVIDES2(proper1(X1), proper1(X2))
ACTIVE1(sieve1(cons2(X, Y))) -> CONS2(X, filter2(X, sieve1(Y)))
TOP1(mark1(X)) -> TOP1(proper1(X))
ACTIVE1(tail1(X)) -> TAIL1(active1(X))
IF3(mark1(X1), X2, X3) -> IF3(X1, X2, X3)
HEAD1(mark1(X)) -> HEAD1(X)
ACTIVE1(filter2(X1, X2)) -> FILTER2(active1(X1), X2)
FROM1(mark1(X)) -> FROM1(X)
PROPER1(cons2(X1, X2)) -> PROPER1(X1)
ACTIVE1(divides2(X1, X2)) -> DIVIDES2(X1, active1(X2))
PROPER1(tail1(X)) -> PROPER1(X)
TOP1(ok1(X)) -> ACTIVE1(X)
DIVIDES2(ok1(X1), ok1(X2)) -> DIVIDES2(X1, X2)
ACTIVE1(s1(X)) -> S1(active1(X))
PROPER1(divides2(X1, X2)) -> PROPER1(X1)
PROPER1(s1(X)) -> PROPER1(X)
PROPER1(tail1(X)) -> TAIL1(proper1(X))
ACTIVE1(primes) -> S1(s1(0))
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> SIEVE1(Y)
ACTIVE1(divides2(X1, X2)) -> DIVIDES2(active1(X1), X2)
DIVIDES2(mark1(X1), X2) -> DIVIDES2(X1, X2)
ACTIVE1(primes) -> S1(0)
HEAD1(ok1(X)) -> HEAD1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)
ACTIVE1(sieve1(X)) -> SIEVE1(active1(X))
TOP1(mark1(X)) -> PROPER1(X)
FILTER2(X1, mark1(X2)) -> FILTER2(X1, X2)
TAIL1(ok1(X)) -> TAIL1(X)
PROPER1(filter2(X1, X2)) -> PROPER1(X1)
PROPER1(if3(X1, X2, X3)) -> PROPER1(X1)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> CONS2(Y, filter2(X, sieve1(Y)))
ACTIVE1(primes) -> SIEVE1(from1(s1(s1(0))))
DIVIDES2(X1, mark1(X2)) -> DIVIDES2(X1, X2)
IF3(ok1(X1), ok1(X2), ok1(X3)) -> IF3(X1, X2, X3)
ACTIVE1(sieve1(cons2(X, Y))) -> SIEVE1(Y)
ACTIVE1(head1(X)) -> ACTIVE1(X)
PROPER1(if3(X1, X2, X3)) -> IF3(proper1(X1), proper1(X2), proper1(X3))
PROPER1(sieve1(X)) -> SIEVE1(proper1(X))
ACTIVE1(filter2(X1, X2)) -> ACTIVE1(X1)
PROPER1(filter2(X1, X2)) -> FILTER2(proper1(X1), proper1(X2))
PROPER1(if3(X1, X2, X3)) -> PROPER1(X3)
PROPER1(s1(X)) -> S1(proper1(X))
ACTIVE1(filter2(X1, X2)) -> ACTIVE1(X2)
PROPER1(sieve1(X)) -> PROPER1(X)
S1(ok1(X)) -> S1(X)
ACTIVE1(head1(X)) -> HEAD1(active1(X))
ACTIVE1(s1(X)) -> ACTIVE1(X)
SIEVE1(ok1(X)) -> SIEVE1(X)
ACTIVE1(filter2(X1, X2)) -> FILTER2(X1, active1(X2))
PROPER1(if3(X1, X2, X3)) -> PROPER1(X2)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> IF3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y))))
ACTIVE1(from1(X)) -> CONS2(X, from1(s1(X)))
CONS2(mark1(X1), X2) -> CONS2(X1, X2)
ACTIVE1(cons2(X1, X2)) -> CONS2(active1(X1), X2)
TAIL1(mark1(X)) -> TAIL1(X)
PROPER1(head1(X)) -> HEAD1(proper1(X))
ACTIVE1(cons2(X1, X2)) -> ACTIVE1(X1)
SIEVE1(mark1(X)) -> SIEVE1(X)
FILTER2(ok1(X1), ok1(X2)) -> FILTER2(X1, X2)
ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(sieve1(cons2(X, Y))) -> FILTER2(X, sieve1(Y))
ACTIVE1(from1(X)) -> S1(X)
PROPER1(cons2(X1, X2)) -> CONS2(proper1(X1), proper1(X2))
TOP1(ok1(X)) -> TOP1(active1(X))
PROPER1(from1(X)) -> PROPER1(X)
ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
PROPER1(cons2(X1, X2)) -> PROPER1(X2)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> FILTER2(s1(s1(X)), Z)
CONS2(ok1(X1), ok1(X2)) -> CONS2(X1, X2)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(filter2(s1(s1(X)), cons2(Y, Z))) -> FILTER2(X, sieve1(Y))
FROM1(ok1(X)) -> FROM1(X)
ACTIVE1(primes) -> FROM1(s1(s1(0)))

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 12 SCCs with 38 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

DIVIDES2(mark1(X1), X2) -> DIVIDES2(X1, X2)
DIVIDES2(X1, mark1(X2)) -> DIVIDES2(X1, X2)
DIVIDES2(ok1(X1), ok1(X2)) -> DIVIDES2(X1, X2)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


DIVIDES2(ok1(X1), ok1(X2)) -> DIVIDES2(X1, X2)
The remaining pairs can at least by weakly be oriented.

DIVIDES2(mark1(X1), X2) -> DIVIDES2(X1, X2)
DIVIDES2(X1, mark1(X2)) -> DIVIDES2(X1, X2)
Used ordering: Combined order from the following AFS and order.
DIVIDES2(x1, x2)  =  x2
mark1(x1)  =  x1
ok1(x1)  =  ok1(x1)

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

DIVIDES2(mark1(X1), X2) -> DIVIDES2(X1, X2)
DIVIDES2(X1, mark1(X2)) -> DIVIDES2(X1, X2)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


DIVIDES2(mark1(X1), X2) -> DIVIDES2(X1, X2)
The remaining pairs can at least by weakly be oriented.

DIVIDES2(X1, mark1(X2)) -> DIVIDES2(X1, X2)
Used ordering: Combined order from the following AFS and order.
DIVIDES2(x1, x2)  =  DIVIDES1(x1)
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
[DIVIDES1, mark1]


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

DIVIDES2(X1, mark1(X2)) -> DIVIDES2(X1, X2)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


DIVIDES2(X1, mark1(X2)) -> DIVIDES2(X1, X2)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
DIVIDES2(x1, x2)  =  DIVIDES1(x2)
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
[DIVIDES1, mark1]


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

FILTER2(ok1(X1), ok1(X2)) -> FILTER2(X1, X2)
FILTER2(mark1(X1), X2) -> FILTER2(X1, X2)
FILTER2(X1, mark1(X2)) -> FILTER2(X1, X2)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


FILTER2(ok1(X1), ok1(X2)) -> FILTER2(X1, X2)
The remaining pairs can at least by weakly be oriented.

FILTER2(mark1(X1), X2) -> FILTER2(X1, X2)
FILTER2(X1, mark1(X2)) -> FILTER2(X1, X2)
Used ordering: Combined order from the following AFS and order.
FILTER2(x1, x2)  =  FILTER1(x2)
ok1(x1)  =  ok1(x1)
mark1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
ok1 > FILTER1


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

FILTER2(mark1(X1), X2) -> FILTER2(X1, X2)
FILTER2(X1, mark1(X2)) -> FILTER2(X1, X2)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


FILTER2(mark1(X1), X2) -> FILTER2(X1, X2)
The remaining pairs can at least by weakly be oriented.

FILTER2(X1, mark1(X2)) -> FILTER2(X1, X2)
Used ordering: Combined order from the following AFS and order.
FILTER2(x1, x2)  =  FILTER1(x1)
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
[FILTER1, mark1]


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

FILTER2(X1, mark1(X2)) -> FILTER2(X1, X2)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


FILTER2(X1, mark1(X2)) -> FILTER2(X1, X2)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
FILTER2(x1, x2)  =  FILTER1(x2)
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
[FILTER1, mark1]


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

IF3(mark1(X1), X2, X3) -> IF3(X1, X2, X3)
IF3(ok1(X1), ok1(X2), ok1(X3)) -> IF3(X1, X2, X3)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


IF3(ok1(X1), ok1(X2), ok1(X3)) -> IF3(X1, X2, X3)
The remaining pairs can at least by weakly be oriented.

IF3(mark1(X1), X2, X3) -> IF3(X1, X2, X3)
Used ordering: Combined order from the following AFS and order.
IF3(x1, x2, x3)  =  IF3(x1, x2, x3)
mark1(x1)  =  x1
ok1(x1)  =  ok1(x1)

Lexicographic Path Order [19].
Precedence:
ok1 > IF3


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

IF3(mark1(X1), X2, X3) -> IF3(X1, X2, X3)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


IF3(mark1(X1), X2, X3) -> IF3(X1, X2, X3)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
IF3(x1, x2, x3)  =  IF1(x1)
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
[IF1, mark1]


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAIL1(mark1(X)) -> TAIL1(X)
TAIL1(ok1(X)) -> TAIL1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


TAIL1(ok1(X)) -> TAIL1(X)
The remaining pairs can at least by weakly be oriented.

TAIL1(mark1(X)) -> TAIL1(X)
Used ordering: Combined order from the following AFS and order.
TAIL1(x1)  =  TAIL1(x1)
mark1(x1)  =  x1
ok1(x1)  =  ok1(x1)

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAIL1(mark1(X)) -> TAIL1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


TAIL1(mark1(X)) -> TAIL1(X)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
TAIL1(x1)  =  TAIL1(x1)
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
mark1 > TAIL1


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

HEAD1(ok1(X)) -> HEAD1(X)
HEAD1(mark1(X)) -> HEAD1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


HEAD1(mark1(X)) -> HEAD1(X)
The remaining pairs can at least by weakly be oriented.

HEAD1(ok1(X)) -> HEAD1(X)
Used ordering: Combined order from the following AFS and order.
HEAD1(x1)  =  HEAD1(x1)
ok1(x1)  =  x1
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

HEAD1(ok1(X)) -> HEAD1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


HEAD1(ok1(X)) -> HEAD1(X)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
HEAD1(x1)  =  HEAD1(x1)
ok1(x1)  =  ok1(x1)

Lexicographic Path Order [19].
Precedence:
ok1 > HEAD1


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS2(mark1(X1), X2) -> CONS2(X1, X2)
CONS2(ok1(X1), ok1(X2)) -> CONS2(X1, X2)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


CONS2(ok1(X1), ok1(X2)) -> CONS2(X1, X2)
The remaining pairs can at least by weakly be oriented.

CONS2(mark1(X1), X2) -> CONS2(X1, X2)
Used ordering: Combined order from the following AFS and order.
CONS2(x1, x2)  =  x2
mark1(x1)  =  mark
ok1(x1)  =  ok1(x1)

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS2(mark1(X1), X2) -> CONS2(X1, X2)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


CONS2(mark1(X1), X2) -> CONS2(X1, X2)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
CONS2(x1, x2)  =  CONS1(x1)
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
[CONS1, mark1]


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S1(ok1(X)) -> S1(X)
S1(mark1(X)) -> S1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


S1(mark1(X)) -> S1(X)
The remaining pairs can at least by weakly be oriented.

S1(ok1(X)) -> S1(X)
Used ordering: Combined order from the following AFS and order.
S1(x1)  =  S1(x1)
ok1(x1)  =  x1
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S1(ok1(X)) -> S1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


S1(ok1(X)) -> S1(X)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
S1(x1)  =  S1(x1)
ok1(x1)  =  ok1(x1)

Lexicographic Path Order [19].
Precedence:
ok1 > S1


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

FROM1(mark1(X)) -> FROM1(X)
FROM1(ok1(X)) -> FROM1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


FROM1(ok1(X)) -> FROM1(X)
The remaining pairs can at least by weakly be oriented.

FROM1(mark1(X)) -> FROM1(X)
Used ordering: Combined order from the following AFS and order.
FROM1(x1)  =  FROM1(x1)
mark1(x1)  =  x1
ok1(x1)  =  ok1(x1)

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

FROM1(mark1(X)) -> FROM1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


FROM1(mark1(X)) -> FROM1(X)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
FROM1(x1)  =  FROM1(x1)
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
mark1 > FROM1


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

SIEVE1(mark1(X)) -> SIEVE1(X)
SIEVE1(ok1(X)) -> SIEVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


SIEVE1(ok1(X)) -> SIEVE1(X)
The remaining pairs can at least by weakly be oriented.

SIEVE1(mark1(X)) -> SIEVE1(X)
Used ordering: Combined order from the following AFS and order.
SIEVE1(x1)  =  SIEVE1(x1)
mark1(x1)  =  x1
ok1(x1)  =  ok1(x1)

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

SIEVE1(mark1(X)) -> SIEVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


SIEVE1(mark1(X)) -> SIEVE1(X)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
SIEVE1(x1)  =  SIEVE1(x1)
mark1(x1)  =  mark1(x1)

Lexicographic Path Order [19].
Precedence:
mark1 > SIEVE1


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER1(cons2(X1, X2)) -> PROPER1(X1)
PROPER1(filter2(X1, X2)) -> PROPER1(X2)
PROPER1(filter2(X1, X2)) -> PROPER1(X1)
PROPER1(tail1(X)) -> PROPER1(X)
PROPER1(if3(X1, X2, X3)) -> PROPER1(X1)
PROPER1(divides2(X1, X2)) -> PROPER1(X2)
PROPER1(head1(X)) -> PROPER1(X)
PROPER1(divides2(X1, X2)) -> PROPER1(X1)
PROPER1(s1(X)) -> PROPER1(X)
PROPER1(from1(X)) -> PROPER1(X)
PROPER1(cons2(X1, X2)) -> PROPER1(X2)
PROPER1(if3(X1, X2, X3)) -> PROPER1(X3)
PROPER1(sieve1(X)) -> PROPER1(X)
PROPER1(if3(X1, X2, X3)) -> PROPER1(X2)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


PROPER1(cons2(X1, X2)) -> PROPER1(X1)
PROPER1(filter2(X1, X2)) -> PROPER1(X2)
PROPER1(filter2(X1, X2)) -> PROPER1(X1)
PROPER1(if3(X1, X2, X3)) -> PROPER1(X1)
PROPER1(divides2(X1, X2)) -> PROPER1(X2)
PROPER1(divides2(X1, X2)) -> PROPER1(X1)
PROPER1(cons2(X1, X2)) -> PROPER1(X2)
PROPER1(if3(X1, X2, X3)) -> PROPER1(X3)
PROPER1(if3(X1, X2, X3)) -> PROPER1(X2)
The remaining pairs can at least by weakly be oriented.

PROPER1(tail1(X)) -> PROPER1(X)
PROPER1(head1(X)) -> PROPER1(X)
PROPER1(s1(X)) -> PROPER1(X)
PROPER1(from1(X)) -> PROPER1(X)
PROPER1(sieve1(X)) -> PROPER1(X)
Used ordering: Combined order from the following AFS and order.
PROPER1(x1)  =  x1
cons2(x1, x2)  =  cons2(x1, x2)
filter2(x1, x2)  =  filter2(x1, x2)
tail1(x1)  =  x1
if3(x1, x2, x3)  =  if3(x1, x2, x3)
divides2(x1, x2)  =  divides2(x1, x2)
head1(x1)  =  x1
s1(x1)  =  x1
from1(x1)  =  x1
sieve1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER1(s1(X)) -> PROPER1(X)
PROPER1(from1(X)) -> PROPER1(X)
PROPER1(tail1(X)) -> PROPER1(X)
PROPER1(sieve1(X)) -> PROPER1(X)
PROPER1(head1(X)) -> PROPER1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


PROPER1(from1(X)) -> PROPER1(X)
The remaining pairs can at least by weakly be oriented.

PROPER1(s1(X)) -> PROPER1(X)
PROPER1(tail1(X)) -> PROPER1(X)
PROPER1(sieve1(X)) -> PROPER1(X)
PROPER1(head1(X)) -> PROPER1(X)
Used ordering: Combined order from the following AFS and order.
PROPER1(x1)  =  PROPER1(x1)
s1(x1)  =  x1
from1(x1)  =  from1(x1)
tail1(x1)  =  x1
sieve1(x1)  =  x1
head1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER1(s1(X)) -> PROPER1(X)
PROPER1(tail1(X)) -> PROPER1(X)
PROPER1(sieve1(X)) -> PROPER1(X)
PROPER1(head1(X)) -> PROPER1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


PROPER1(tail1(X)) -> PROPER1(X)
The remaining pairs can at least by weakly be oriented.

PROPER1(s1(X)) -> PROPER1(X)
PROPER1(sieve1(X)) -> PROPER1(X)
PROPER1(head1(X)) -> PROPER1(X)
Used ordering: Combined order from the following AFS and order.
PROPER1(x1)  =  PROPER1(x1)
s1(x1)  =  x1
tail1(x1)  =  tail1(x1)
sieve1(x1)  =  x1
head1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER1(s1(X)) -> PROPER1(X)
PROPER1(sieve1(X)) -> PROPER1(X)
PROPER1(head1(X)) -> PROPER1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


PROPER1(sieve1(X)) -> PROPER1(X)
The remaining pairs can at least by weakly be oriented.

PROPER1(s1(X)) -> PROPER1(X)
PROPER1(head1(X)) -> PROPER1(X)
Used ordering: Combined order from the following AFS and order.
PROPER1(x1)  =  PROPER1(x1)
s1(x1)  =  x1
sieve1(x1)  =  sieve1(x1)
head1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
[PROPER1, sieve1]


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
QDP
                            ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER1(s1(X)) -> PROPER1(X)
PROPER1(head1(X)) -> PROPER1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


PROPER1(head1(X)) -> PROPER1(X)
The remaining pairs can at least by weakly be oriented.

PROPER1(s1(X)) -> PROPER1(X)
Used ordering: Combined order from the following AFS and order.
PROPER1(x1)  =  PROPER1(x1)
s1(x1)  =  x1
head1(x1)  =  head1(x1)

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
QDP
                                ↳ QDPOrderProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER1(s1(X)) -> PROPER1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


PROPER1(s1(X)) -> PROPER1(X)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
PROPER1(x1)  =  PROPER1(x1)
s1(x1)  =  s1(x1)

Lexicographic Path Order [19].
Precedence:
s1 > PROPER1


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
QDP
                                    ↳ PisEmptyProof
          ↳ QDP
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(head1(X)) -> ACTIVE1(X)
ACTIVE1(filter2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(divides2(X1, X2)) -> ACTIVE1(X2)
ACTIVE1(cons2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
ACTIVE1(divides2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(filter2(X1, X2)) -> ACTIVE1(X2)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


ACTIVE1(filter2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(divides2(X1, X2)) -> ACTIVE1(X2)
ACTIVE1(divides2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(filter2(X1, X2)) -> ACTIVE1(X2)
The remaining pairs can at least by weakly be oriented.

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(head1(X)) -> ACTIVE1(X)
ACTIVE1(cons2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)
Used ordering: Combined order from the following AFS and order.
ACTIVE1(x1)  =  ACTIVE1(x1)
sieve1(x1)  =  x1
head1(x1)  =  x1
filter2(x1, x2)  =  filter2(x1, x2)
divides2(x1, x2)  =  divides2(x1, x2)
cons2(x1, x2)  =  x1
if3(x1, x2, x3)  =  x1
from1(x1)  =  x1
s1(x1)  =  x1
tail1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(head1(X)) -> ACTIVE1(X)
ACTIVE1(cons2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


ACTIVE1(head1(X)) -> ACTIVE1(X)
The remaining pairs can at least by weakly be oriented.

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(cons2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)
Used ordering: Combined order from the following AFS and order.
ACTIVE1(x1)  =  ACTIVE1(x1)
sieve1(x1)  =  x1
head1(x1)  =  head1(x1)
cons2(x1, x2)  =  x1
if3(x1, x2, x3)  =  x1
from1(x1)  =  x1
s1(x1)  =  x1
tail1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(cons2(X1, X2)) -> ACTIVE1(X1)
ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


ACTIVE1(cons2(X1, X2)) -> ACTIVE1(X1)
The remaining pairs can at least by weakly be oriented.

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)
Used ordering: Combined order from the following AFS and order.
ACTIVE1(x1)  =  ACTIVE1(x1)
sieve1(x1)  =  x1
cons2(x1, x2)  =  cons2(x1, x2)
if3(x1, x2, x3)  =  x1
from1(x1)  =  x1
s1(x1)  =  x1
tail1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


ACTIVE1(if3(X1, X2, X3)) -> ACTIVE1(X1)
The remaining pairs can at least by weakly be oriented.

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)
Used ordering: Combined order from the following AFS and order.
ACTIVE1(x1)  =  ACTIVE1(x1)
sieve1(x1)  =  x1
if3(x1, x2, x3)  =  if1(x1)
from1(x1)  =  x1
s1(x1)  =  x1
tail1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
QDP
                            ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(from1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


ACTIVE1(from1(X)) -> ACTIVE1(X)
The remaining pairs can at least by weakly be oriented.

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)
Used ordering: Combined order from the following AFS and order.
ACTIVE1(x1)  =  ACTIVE1(x1)
sieve1(x1)  =  x1
from1(x1)  =  from1(x1)
s1(x1)  =  x1
tail1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
QDP
                                ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(s1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


ACTIVE1(s1(X)) -> ACTIVE1(X)
The remaining pairs can at least by weakly be oriented.

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)
Used ordering: Combined order from the following AFS and order.
ACTIVE1(x1)  =  ACTIVE1(x1)
sieve1(x1)  =  x1
s1(x1)  =  s1(x1)
tail1(x1)  =  x1

Lexicographic Path Order [19].
Precedence:
[ACTIVE1, s1]


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
QDP
                                    ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
ACTIVE1(tail1(X)) -> ACTIVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


ACTIVE1(tail1(X)) -> ACTIVE1(X)
The remaining pairs can at least by weakly be oriented.

ACTIVE1(sieve1(X)) -> ACTIVE1(X)
Used ordering: Combined order from the following AFS and order.
ACTIVE1(x1)  =  ACTIVE1(x1)
sieve1(x1)  =  x1
tail1(x1)  =  tail1(x1)

Lexicographic Path Order [19].
Precedence:
trivial


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
QDP
                                        ↳ QDPOrderProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE1(sieve1(X)) -> ACTIVE1(X)

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


ACTIVE1(sieve1(X)) -> ACTIVE1(X)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
ACTIVE1(x1)  =  ACTIVE1(x1)
sieve1(x1)  =  sieve1(x1)

Lexicographic Path Order [19].
Precedence:
sieve1 > ACTIVE1


The following usable rules [14] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
QDP
                                            ↳ PisEmptyProof
          ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP

Q DP problem:
The TRS P consists of the following rules:

TOP1(ok1(X)) -> TOP1(active1(X))
TOP1(mark1(X)) -> TOP1(proper1(X))

The TRS R consists of the following rules:

active1(primes) -> mark1(sieve1(from1(s1(s1(0)))))
active1(from1(X)) -> mark1(cons2(X, from1(s1(X))))
active1(head1(cons2(X, Y))) -> mark1(X)
active1(tail1(cons2(X, Y))) -> mark1(Y)
active1(if3(true, X, Y)) -> mark1(X)
active1(if3(false, X, Y)) -> mark1(Y)
active1(filter2(s1(s1(X)), cons2(Y, Z))) -> mark1(if3(divides2(s1(s1(X)), Y), filter2(s1(s1(X)), Z), cons2(Y, filter2(X, sieve1(Y)))))
active1(sieve1(cons2(X, Y))) -> mark1(cons2(X, filter2(X, sieve1(Y))))
active1(sieve1(X)) -> sieve1(active1(X))
active1(from1(X)) -> from1(active1(X))
active1(s1(X)) -> s1(active1(X))
active1(cons2(X1, X2)) -> cons2(active1(X1), X2)
active1(head1(X)) -> head1(active1(X))
active1(tail1(X)) -> tail1(active1(X))
active1(if3(X1, X2, X3)) -> if3(active1(X1), X2, X3)
active1(filter2(X1, X2)) -> filter2(active1(X1), X2)
active1(filter2(X1, X2)) -> filter2(X1, active1(X2))
active1(divides2(X1, X2)) -> divides2(active1(X1), X2)
active1(divides2(X1, X2)) -> divides2(X1, active1(X2))
sieve1(mark1(X)) -> mark1(sieve1(X))
from1(mark1(X)) -> mark1(from1(X))
s1(mark1(X)) -> mark1(s1(X))
cons2(mark1(X1), X2) -> mark1(cons2(X1, X2))
head1(mark1(X)) -> mark1(head1(X))
tail1(mark1(X)) -> mark1(tail1(X))
if3(mark1(X1), X2, X3) -> mark1(if3(X1, X2, X3))
filter2(mark1(X1), X2) -> mark1(filter2(X1, X2))
filter2(X1, mark1(X2)) -> mark1(filter2(X1, X2))
divides2(mark1(X1), X2) -> mark1(divides2(X1, X2))
divides2(X1, mark1(X2)) -> mark1(divides2(X1, X2))
proper1(primes) -> ok1(primes)
proper1(sieve1(X)) -> sieve1(proper1(X))
proper1(from1(X)) -> from1(proper1(X))
proper1(s1(X)) -> s1(proper1(X))
proper1(0) -> ok1(0)
proper1(cons2(X1, X2)) -> cons2(proper1(X1), proper1(X2))
proper1(head1(X)) -> head1(proper1(X))
proper1(tail1(X)) -> tail1(proper1(X))
proper1(if3(X1, X2, X3)) -> if3(proper1(X1), proper1(X2), proper1(X3))
proper1(true) -> ok1(true)
proper1(false) -> ok1(false)
proper1(filter2(X1, X2)) -> filter2(proper1(X1), proper1(X2))
proper1(divides2(X1, X2)) -> divides2(proper1(X1), proper1(X2))
sieve1(ok1(X)) -> ok1(sieve1(X))
from1(ok1(X)) -> ok1(from1(X))
s1(ok1(X)) -> ok1(s1(X))
cons2(ok1(X1), ok1(X2)) -> ok1(cons2(X1, X2))
head1(ok1(X)) -> ok1(head1(X))
tail1(ok1(X)) -> ok1(tail1(X))
if3(ok1(X1), ok1(X2), ok1(X3)) -> ok1(if3(X1, X2, X3))
filter2(ok1(X1), ok1(X2)) -> ok1(filter2(X1, X2))
divides2(ok1(X1), ok1(X2)) -> ok1(divides2(X1, X2))
top1(mark1(X)) -> top1(proper1(X))
top1(ok1(X)) -> top1(active1(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.